package com.test.demon1;

import javax.swing.*;

public class Animal {
    public String name;
    public int age;

    public void eat(){
        System.out.println(this.name+"正在吃饭...");
    }

    public Animal(){
        System.out.println("...........");
    }

    public Animal(String name,int age){
        this.name = name;
        this.age = age;
    }


}
